home *** CD-ROM | disk | FTP | other *** search
/ 100 Plus Great Games 2 / 100PLUSV2.BIN / games / Hex.dxr / graphics_9_game piecesa.ls < prev    next >
Encoding:
Text File  |  2002-01-31  |  790 b   |  42 lines

  1. property pSprite, spriteNum
  2. global gPiece
  3.  
  4. on beginSprite me
  5.   pSprite = sprite(spriteNum)
  6.   whoPiece = pSprite.member.name.symbol
  7.   gPiece[whoPiece].add(pSprite)
  8. end
  9.  
  10. on blink me
  11.   pSprite.blend = 0
  12.   s = the ticks + 5
  13.   repeat while the ticks < s
  14.     updateStage()
  15.   end repeat
  16.   pSprite.blend = 100
  17.   s = the ticks + 5
  18.   repeat while the ticks < s
  19.     updateStage()
  20.   end repeat
  21.   pSprite.blend = 0
  22.   s = the ticks + 5
  23.   repeat while the ticks < s
  24.     updateStage()
  25.   end repeat
  26.   pSprite.blend = 100
  27.   s = the ticks + 5
  28.   repeat while the ticks < s
  29.     updateStage()
  30.   end repeat
  31.   pSprite.blend = 0
  32.   s = the ticks + 5
  33.   repeat while the ticks < s
  34.     updateStage()
  35.   end repeat
  36.   pSprite.blend = 100
  37.   s = the ticks + 5
  38.   repeat while the ticks < s
  39.     updateStage()
  40.   end repeat
  41. end
  42.